package com.myself.cloud.entity.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Package: com.myself.cloud.entity
 * @Author baijialiang
 * @CreateDate 2022-08-22
 * @describe 实体类
 */
@Data
@TableName("system_error")
@ApiModel(value="SystemError对象", description="")
    public class SystemError implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
    * 主键id
    */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "error_id", type = IdType.AUTO)
    private Integer errorId;
    
    /**
    * 错误码code
    */
    @ApiModelProperty(value = "错误码code")
    private String errorCode;
    
    /**
    * 错误信息
    */
    @ApiModelProperty(value = "错误信息")
    private String errorMessage;
    
    /**
    * 1-有效0-无效
    */
    @ApiModelProperty(value = "1-有效0-无效")
    private Boolean flag;
    
    /**
    * 创建人
    */
    @ApiModelProperty(value = "创建人")
    private String createName;
    
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    
    /**
    * 更新人
    */
    @ApiModelProperty(value = "更新人")
    private String updateName;
    
    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}